package com.hy.mydesktop.client.component.meta;

import com.extjs.gxt.ui.client.data.ModelData;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;

/**
 * 
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-8-29；时间：下午03:35:27</li>
 * <li>类型名称：ComboBoxModel</li>
 * <li>设计目的：</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
public class ComboBoxModel {

	/**
	 * 数据集
	 */
	private ListStore<ModelData> store;
	
	/**
	 * 显示属性
	 */
	private String displayField;
	
	/**
	 * 空值文本
	 */
	private String emptyText;

	/**
	 * 标签
	 */
	private String fieldLabel;

	/**
	 * 如有匹配的值会自动补全，并在下拉列表中显示ֵ
	 */
	private boolean typeHead;
	
	/**
	 * 当触发器领域被激活，执行这个行为
	 */
	private TriggerAction triggerAction;
	
	/**
	 * 模版
	 */
	private String template;
	
	/**
	 * 加载时显示文本
	 */
	private String loadingText;
	
	/**
	 * 宽
	 */
	private int width;
	
	/**
	 * 最大高度
	 */
	private int maxHight;
	/**
	 * 控件名
	 */
	private String name;
	/**
	 * 是否允许为空
	 */
	private boolean allowBlank;
	

	public boolean isAllowBlank() {
    	return allowBlank;
    }

	public void setAllowBlank(boolean allowBlank) {
    	this.allowBlank = allowBlank;
    }

	public ListStore<ModelData> getStore() {
		return store;
	}

	public void setStore(ListStore<ModelData> store) {
		this.store = store;
	}

	public String getDisplayField() {
		return displayField;
	}

	public void setDisplayField(String displayField) {
		this.displayField = displayField;
	}

	public String getEmptyText() {
		return emptyText;
	}

	public void setEmptyText(String emptyText) {
		this.emptyText = emptyText;
	}

	public String getFieldLabel() {
		return fieldLabel;
	}

	public void setFieldLabel(String fieldLabel) {
		this.fieldLabel = fieldLabel;
	}

	public boolean isTypeHead() {
		return typeHead;
	}

	public void setTypeHead(boolean typeHead) {
		this.typeHead = typeHead;
	}

	public TriggerAction getTriggerAction() {
		return triggerAction;
	}

	public void setTriggerAction(TriggerAction triggerAction) {
		this.triggerAction = triggerAction;
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public String getLoadingText() {
		return loadingText;
	}

	public void setLoadingText(String loadingText) {
		this.loadingText = loadingText;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getMaxHight() {
		return maxHight;
	}

	public void setMaxHight(int maxHight) {
		this.maxHight = maxHight;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
